package com.ruoyi.common.core.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 房间表对象 sys_house
 * 
 * @author ruoyi
 * @date 2021-08-16
 */
public class SysHouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房屋表 */
    private Integer id;

    /** 房间号 */
    @Excel(name = "房间号")
    private String name;

    /** 户主 */
    @Excel(name = "户主")
    private Long userId;

    /** 该户有多少人 */
    @Excel(name = "该户有多少人")
    private Integer num;

    /** 房屋面积，㎡ */
    @Excel(name = "房屋面积，㎡")
    private Float area;

    /** 所属栋id */
    @Excel(name = "所属栋id")
    private Long deptId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private Integer communityId;


    /**户主姓名**/
    @Excel(name = "户主姓名")
    private String userNickName;

    public SysHouse() {
    }

    public SysHouse(String name, Integer num, Float area, Long deptId, Integer communityId) {
        this.name = name;
        this.num = num;
        this.area = area;
        this.deptId = deptId;
        this.communityId = communityId;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }
    public void setArea(Float area)
    {
        this.area = area;
    }

    public Float getArea()
    {
        return area;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("userId", getUserId())
            .append("num", getNum())
            .append("area", getArea())
            .append("deptId", getDeptId())
            .toString();
    }
}
